export default {
	methods: {
		connectSocketInit() {
			if (uni.myWebsocket == undefined || uni.myWebsocket == '' || uni.myWebsocket == null) {
				//连接上websocket
				uni.$connectSocketInit.connectSocket(uni.$nettyPort)
			}
		}
	},
	onShow() {
		if (uni.getStorageSync('isVisitorLogin')) {
			//console.log('用户模式！')
			this.connectSocketInit()
		}
	}
}